#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int MuTa(int n)
{
	int x = 0;
	int y = 0;
	for (x = 1;x <= n;x++)
	{
		for (y = 1;y <= x;y++)
		{
			printf("%d*%d = %d ", x, y, x * y);
		}
		printf("\n");
	}
}

int main()
{
	int n = 0;
	scanf("%d", &n);
	MuTa(n);

	return 0;
}